package Tank.text;

/**
 * @author qqq
 * @version 1.0
 * @date $(DATE)$(TIME)
 * @description
 */
public class TankD {
    public static void main(String[] args) {
        // 创建不同类型的坦克
        Tank tankA = new TankA();
        Tank tankB = new TankB();
        Tank tankC = new TankC();

        // 调用坦克的方法
        tankA.shoot();
        tankA.move();
        tankA.die();

        tankB.shoot();
        tankB.move();
        tankB.die();

        tankC.shoot();
        tankC.move();
        tankC.die();
    }
}